KeyValuePair<K, V>
struct KeyValuePair<K, V>
Module: System.Collections
Assembly: System.Runtime.dll
Source file: KeyValuePair.rvn
Inheritance: Object → ValueType → KeyValuePair<K, V>
Implements: EquatableTo<KeyValuePair<K, V>>
A key and value transported together as a deconstructable value.
Parameters
| Name | Description |
|---|---|
Key |
The key. |
Value |
The associated value. |
Remarks
Native development supports construction, copying, getters, initialization-only accessors and deconstruction. Generated equality and hashing use the declared key and value types, including canonical text equality. Unsupported component Object contracts may fault; generic formatting remains unavailable.
Development generic records support generated equality, hashes and the self-equality interface. See the complete pair contracts, including both operators, null/text behavior, component limits and allocation costs. Generic formatting now produces named Key and Value components with quoted text and explicit null. The rebuilt library includes this override; generic value components still box.